package com.yunban.project.template.model.dto;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import lombok.Data;

import java.io.Serial;
import java.io.Serializable;

/**
 * @author: lijiajun
 * @date: 2024-11-06
 * @version: 1.0
 */
@Data
@Schema(description = "前端块类型请求参数")
public class TypeReq implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    @Schema(description = "类型名称")
    @NotBlank(message = "类型名称不能为空")
    private String name;

    @Schema(description = "类型Code")
    @NotBlank(message = "类型Code不能为空")
    private String code;
}
